
#ifndef _BASEFILEOP_H_ 
#define _BASEFILEOP_H_



class CBaseFileOp  
{
public:
	CBaseFileOp();
	virtual ~CBaseFileOp();
	static bool ReadString(CFile * fp,CString & rets);
	static bool WriteString(CFile * fp,CString & s);
	static bool ReadFloat(CFile * fp, double &retv);
	static bool WriteFloat(CFile * fp, double &v);
	static bool ReadFloat32(CFile * fp, float &retv);
	static bool WriteFloat32(CFile * fp, float &v);
	static bool ReadInt(CFile * fp, long &retv);
	static bool WriteInt(CFile * fp, long &v);
	static bool ReadChar(CFile * fp, unsigned char &retv);
	static bool WriteChar(CFile * fp, unsigned char &v);
	static bool ReadInt64(CFile * fp, INT64 &retv);
	static bool WriteInt64(CFile * fp, INT64 &v);
};

#endif 
